{extend name='base' /}

{block name='main'}
<div class="main-panel">
    <div class="content">
        <div class="page-inner">
            <div class="row">
                <div class="col-md-12">
                    <div class="card">
                        <div class="card-header">
                            <h4 class="card-title">订单详情</h4>
                        </div>
                        <div class="card-body">
                            {include file='order/goods'/}

                            <div class="tt">
                                买家信息
                            </div>
                            <table cellspacing="0" class="tb w-100">
                                <tbody class="w-50">
                                <tr>
                                    <td class="tl">地址</td>
                                    <td>
                                        {$order['address']}
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tl">姓名</td>
                                    <td>
                                        {$order['truename']}
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tl">手机</td>
                                    <td>
                                        {$order['mobile']}
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            {if $order['status'] > 1}
                            <div class="tt">
                                快递信息
                            </div>
                            <table cellspacing="0" class="tb w-100">
                                <tbody class="w-50">
                                <tr>
                                    <td class="tl">快递类型</td>
                                    <td>
                                        {$order['send_type']}
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tl">快递单号</td>
                                    <td>
                                        {$order['send_no']}
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tl">发货时间</td>
                                    <td>
                                        {$order['send_time']}
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            {/if}
                            {if $log}
                            <div class="tt">
                                订单进程
                            </div>
                            <table cellspacing="0" class="tb w-100">
                                <tbody>
                                <tr>
                                    <td class="tl"></td>
                                    <td>
                                        <div>
                                            {foreach $log as $k => $v}
                                            {$v.date_entered} - {$v.title} <br>
                                            {/foreach}
                                        </div>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            {/if}
                            <div class="tt">
                                订单详情
                            </div>
                            <table cellspacing="0" class="tb w-100">
                                <tbody class="w-50">
                                <tr>
                                    <td class="tl">下单时间</td>
                                    <td>
                                        {$order['date_entered']}
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tl">最后更新</td>
                                    <td>
                                        {$order['update_entered']}
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tl">订单状态</td>
                                    <td>
                                        {if $order['status'] == 1}
                                        <span class="text-danger">待发货</span>
                                        {elseif $order['status'] == 2}
                                        <span class="text-info">待收货</span>
                                        {else}
                                        <span class="text-success">已完成</span>
                                        {/if}
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tl"></td>
                                    <td>
                                        <button type="button" class="btn btn-danger" onclick="window.history.back()">返回</button>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{/block}

{block name='js'}
<script>

</script>
{/block}